Kubio\Core\KubioFrontPageRevertNotice C

Total Complexity 115
Dependencies 6
Dependents 1
Total lines 957
Lines of code 775
Logical lines of code 296
Comment lines 27
Methods 49
Properties 9

Methods 49

Method Rating Maintainability Complexity Lines of code
restoreWebsiteMenu()
A
38 13 73
getRestoreNoticeScript()
A
39 3 98
getRestoreNoticeStyle()
A
45 1 122
backupTemplateParts()
S
52 7 24
backupWebsiteMenu()
S
51 5 27
onUpdateBlogTemplateToHaveFrontHeader()
S
47 4 38
createFallbackMenu()
S
49 4 38
getCurrentMenuId()
S
56 4 21
getTemplatePartContentBySlug()
S
49 3 33
onPrintNoticeWithCheck()
S
66 5 9
getShouldBackupData()
S
62 4 13
emptyMenuItems()
S
62 4 12
restoreTemplateParts()
S
62 4 11
restoreGlobalData()
S
58 3 17
restoreWebsiteFrontPage()
S
58 3 16
backupGlobalData()
S
62 3 12
onRestoreUserFrontPage()
S
59 2 15
backupUserUsedStarterContentFrontpage()
S
66 3 9
removeBlackWizardFlags()
S
69 3 8
getShowNoticeInEditor()
S
75 3 4
getRestoreNoticeHTML()
S
55 1 26
getCurrentUserIsAdmin()
S
79 2 3
getIsFreshSite()
S
73 2 5
getFrontPageBackupData()
S
67 2 8
getInstance()
S
72 2 6
backupUserData()
S
68 2 8
initRestApi()
S
61 1 14
backupWebsiteFrontPage()
S
63 1 11
load()
S
80 1 3
printRestoreNotice()
S
74 1 5
__construct()
S
70 1 6
restoreFrontPageForStarterContent()
S
73 1 5
getFrontPageBackupKey()
S
75 1 4
getThemeHasStarterContentKeySet()
S
72 1 5
getEditorNoticeHtml()
S
68 1 7
getHasFrontPageBackupData()
S
75 1 4
getShowNoticeKey()
S
75 1 4
getGlobalDataKey()
S
75 1 4
getFrontPageFromtStarterContentKey()
S
75 1 4
getFrontPageRevertedKey()
S
75 1 4
getHasStarterContentBackup()
S
80 1 3
getMenuBackupKey()
S
75 1 4
getTemplatePartsBackupKey()
S
75 1 4
updateShowNoticeFlag()
S
80 1 3
shouldShowRestoreNotice()
S
80 1 3
onKeepKubioFrontPage()
S
74 1 5
updateStartSourceToKnowItReverted()
S
72 1 5
getFeatureIsEnabled()
S
79 1 3
cleanUpFlags()
S
67 1 9